package com.example.cargetter.controller;


import com.example.cargetter.utils.WarnUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("warns")
public class WarnController {

    @GetMapping("/getFlag")
    public int getFlag() {
        WarnUtil warnUtil = new WarnUtil();
        return warnUtil.getFlag();
    }

}
